import request from '../utils/request';

/* 采集信息 */

    /* 列表 */
    export function collectorInfoList (data) {
        return request({
            url: '/collector-client/info/list',
            method: 'get',
            params:data
        })
    }
    /* 新增 */
    export function collectorInfoAdd (data) {
        return request({
            url: '/collector-client/info/add',
            method: 'POST',
            data
        })
    }
    /* 编辑 */
    export function collectorInfoEdit (data) {
        return request({
            url: '/collector-client/info/update/'+data.id,
            method: 'PUT',
            data
        })
    }
    /* 删除 */
    export function collectorInfoDel (data) {
        return request({
            url: '/collector-client/info/delete/'+data.id,
            method: 'delete',
           
        })
    }

/* 采集内容分类 */

    /* 列表 */
    export function collectorContentList (data) {
        return request({
            url: '/collector-client/contentType/list',
            method: 'get',
            params:data
        })
    }
    /* 新增 */
    export function collectorContentAdd (data) {
        return request({
            url: '/collector-client/contentType/add',
            method: 'POST',
            data
        })
    }
    /* 编辑 */
    export function collectorContentEdit (data) {
        return request({
            url: '/collector-client/contentType/update/'+data.id,
            method: 'PUT',
            data
        })
    }
    /* 删除 */
    export function collectorContentDel (data) {
        return request({
            url: '/collector-client/contentType/delete/'+data.id,
            method: 'delete',
           
        })
    }

    /* 采集任务 */

    /* 列表 */
    export function collectorTaskList (data) {
        return request({
            url: '/collector-client/task/list',
            method: 'get',
            params:data
        })
    }
    /* 新增 */
    export function collectorTaskAdd (data) {
        return request({
            url: '/collector-client/task/add',
            method: 'POST',
            data
        })
    }
    /* 编辑 */
    export function collectorTaskEdit (data) {
        return request({
            url: '/collector-client/task/update/'+data.id,
            method: 'PUT',
            data
        })
    }
    /* 删除 */
    export function collectorTaskDel (data) {
        return request({
            url: '/collector-client/task/delete/'+data.id,
            method: 'delete',
           
        })
    }
    /* 审批 */
    export function collectorCheck (data,stutas) {
        return request({
            url: '/collector-client/task/updateStatus/'+data.id+"/"+stutas,
            method: 'PUT',
        })
    }
   